<%@ include file="/common/taglibs.jsp"%>

<%-- <display:table name="exchanges" cellspacing="0" cellpadding="0" requestURI=""  --%>
<%--     defaultsort="1" id="exchanges" pagesize="25" class="table" export="true"> --%>
    
<%--     <display:column property="exId" escapeXml="true" sortable="true" titleKey="" style="width: 25%" --%>
<%--          url="/open/exchangeMapping/edit" paramId="id" paramProperty="id"/> --%>
<%--     <display:column property="revision" escapeXml="true" sortable="true" titleKey="activeUsers.companyName" style="width: 34%"/> --%>
<%--     <display:column property="commodity" sortable="true" titleKey="user.email" style="width: 25%"/> --%>
<%--     <display:column property="sender" sortable="true" titleKey="dx.sender" media="csv xml excel pdf"/> --%>
<%--     <display:column property="receiver" sortable="true" titleKey="dx.receiver" media="csv xml excel pdf"/> --%>
<%--     <display:column titleKey="user.add" style="width: 16%; padding-left: 15px" media="html"  --%>
<%--         url="addexistinglab.html" paramId="id" paramProperty="id"> --%>
<!--         <input type="button" value="add" /> -->
<%--     </display:column> --%>
    
<%--     <display:column property="enabled" titleKey="user.enabled" media="csv xml excel pdf"/> --%>

<%--     <display:setProperty name="paging.banner.item_name" value="DX"/> --%>
<%--     <display:setProperty name="paging.banner.items_name" value="Data Exchanges"/> --%>

<%--     <display:setProperty name="export.excel.filename" value=" Data Exchanges - Master List and Descriptions.xls"/> --%>


<%-- </display:table> --%>

<display:table name="exchanges" defaultsort="1" requestURI="/open/exchangeMapping" defaultorder="ascending" export="true">
	<display:column property="exId" sortable="true" titleKey="dx.exId" href="/open/exchangeMapping/edit" paramId="id" paramProperty="id"/>
	<display:column property="commodity" sortable="true" title="Commodity"/>
	<display:column property="revision" sortable="true" title="Revision"/>
	<display:column property="sender" sortable="true" title="Sender"/>
	<display:column property="receiver" sortable="true" title="Receiver"/>
</display:table>
<button type="button" onclick="location.href='/open/exchangeMapping/edit/0'">New</button>
<button type="button" onclick="location.href='/open/exchangeMapping/import'">Import</button>
<table>
<tr style="font-weight:bold;">
	<td width="100px">Exchange Number</td>
	<td width="100px">Revision</td>
	<td width="100px">Commodity</td>
	<td width="100px">Sender</td>
	<td width="100px">Receiver</td>
</tr>
<c:forEach items="${exchanges}" var="ex">
<tr>
<td><a href="/open/exchangeMapping/edit/${ex.id}">${ex.exId}</a></td>
<td>${ex.revision}</td>
<td>${ex.commodity}</td>
<td>${ex.sender}</td>
<td>${ex.receiver}</td>
</tr>	
</c:forEach>

</table>